package Test05;

public class FindTheMaxSumInSubArray2 {
    //在线处理，动态规划解法
    public static void main(String[] args) {
        int[] arr=new int[]{1,-2,3,5,-2,6,-1};
        int maxSum=0;
        for(int i=0;i<arr.length;i++){
            if(maxSum+arr[i]<0){

            }
        }
    }
}
